## -*- coding: utf-8 -*-
<%include file="header.html"/>
<div id="wrapper">
%if pageCount > 1:
    <div class="page_bar">
    	%for i in rg:
    		%if i == currentPage:
    		<div class="current_page">${i}</div>
    		%else:
    		<div><a href="${pagePath}page/${i}">${i}</a></div>
    		%endif
    	%endfor
    </div>
%endif
    <div id="content" class="multi float_right">
    %for post in posts:
        <div class="entry clear_bar">
    		<div class="styled_date">
    			<span class="styled_day">${post.getCSTDate().day}</span>
    			<span class="styled_month">${post.getMonthDisplay()}</span>
    		</div>
            %if post.isPrivate and not isAdmin:
                <h1 class="title">Classified Post</h1>
                <div class="post_meta">
        	        <span>${post.getCSTDate().strftime('%x %X')}</span>
                    &nbsp;|&nbsp;Privileged users only
        	    </div>
            %else:
                <h1 class="title"><a href="${post.makeLink()}">${post.title}${'<span class="private_sign">(Private)</span>' if post.isPrivate else ''}</a></h1>
                <div class="post_meta">
        	        <span><a href="${post.makeLink()}#comments">
        			%if post.getCommentCount() == 0:
        				没人理我:(
        			%else:
        				${post.getCommentCount()}条评论
        			%endif
        			</a></span>&nbsp;|&nbsp;关键词：
        	        <span>${post.getTagLinks()}</span>
                    %if isAdmin:
                        &nbsp;|&nbsp;<span><a href="${post.getEditLink()}">编辑</a></span>
                    %endif
        	    </div>
                <div class="post_content clear_bar">${post.briefContent()}</div>
                <!--
                    <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
                             xmlns:dc="http://purl.org/dc/elements/1.1/"
                             xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
                    <rdf:Description
                        rdf:about="${baseUrl}${post.makeLink()}"
                        dc:identifier="${baseUrl}${post.makeLink()}"
                        dc:title="${post.title}"
                        trackback:ping="${baseUrl}${post.makeLink()}/trackback" />
                    </rdf:RDF>
                -->
            %endif
        </div>
    %endfor
    </div>
<%include file="widget.html"/>
<%include file="footer.html"/>